<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>

</head>

<body>
    <div id="app">
        蜗牛官网: <a :href="mainPage">点我</a> <br>
        请输入网址: <input type="text" :value="mainPage"> <br>
        账号: <input type="text" :placeholder="account"> <br>
        账号: <input type="password" :placeholder="pwd">
        <hr>
        <input :type="type" value="我不是按钮"> <br>
        修改css:<div :style="{backgroundColor: divcss.bgcolor,
            border: divcss.box,
            height: divcss.he,
            width: divcss.wid}">我爱你</div>
    </div>

</body>

<script>
    const vm = new Vue({
        el: "#app",
        data:{
            mainPage:'https://www.baidu.com',
            account:'请输入账号',
            pwd:'请输入密码',
            type:'button',
            divcss:{
                bgcolor:'red',
                box:'1px solid red',
                he:'100px',
                wid:'20%'
            }
        }
    });

</script>

</html>